package whf.framework.workflow.assign.parser;

import java.util.Collection;
import java.util.Set;

import org.jdom.Element;

import whf.framework.exception.AppException;
import whf.framework.exception.FindException;
import whf.framework.workflow.assign.AssignmentService;

/**
 * @author king
 *
 */
public class UserAssignmentParser extends DefaultAssignmentParser {
	public Set<AssignmentParser> getChildrenParsers() {
		return null;
	}

	@Override
	protected void parseSourceElement(Element source) throws AppException {
		//
	}

	public Collection<String> getUsers() throws FindException {
		String username = super.getAttribute("username");
		return AssignmentService.getAssignmentService().findUsersByUsername(username);
	}
}
